body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 90%;
    height: 90%;
}

.quadrant {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quadrant h2 {
    margin-top: 0;
}

.task-list {
    list-style-type: none;
    padding: 0;
}

.task-list li {
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 重要且紧急的任务 */
#list1 .task-list li {
    background: #ff6b6b; /* 醒目的红色 */
    border-left: 5px solid #ff3b3b; /* 左侧边框加深 */
}

.task-list li.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.task-list li .actions {
    display: flex;
    gap: 10px;
}

.task-list li .actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px; 
}

.task-list li .actions button:hover {
    color: #ffcc00;
}

/* 添加任务按钮 */
.add-task-button {
    position: fixed;
    top: 20px; /* 位于右上角 */
    right: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.add-task-button:hover {
    background: #45a049;
}

/* 隐藏/显示已完成任务按钮 */
.toggle-completed-button {
    position: fixed;
    bottom: 20px; /* 位于右下角 */
    right: 20px;
    background: #666; /* 更低调的灰色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.toggle-completed-button:hover {
    background: #555; /* 悬停时稍深的灰色 */
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #2a5298;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: white;
}

/* 表单样式 */
#task-form, #edit-task-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#task-form label, #edit-task-form label {
    font-weight: bold;
}

#task-form input, #task-form select, #edit-task-form input, #edit-task-form select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#task-form button, #edit-task-form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#task-form button:hover, #edit-task-form button:hover {
    background: #45a049;
}